package com.allergan.ws.ArgusServicesClient;

import java.rmi.RemoteException;

import org.apache.axis2.AxisFault;

import com.allergan.ws.ArgusServices.AGNServiceStub;
import com.allergan.ws.ArgusServices.AGNServiceStub.AGNCaseDetail;

import com.allergan.ws.ArgusServices.AGNServiceStub.InitiateInvestigationRequest;
import com.allergan.ws.ArgusServices.AGNServiceStub.InitiateInvestigationRequestResponse;

public class AGNServiceClient {
	public static void main(String[] args) throws Exception {
        try {
        	AGNCaseDetail agnCaseDetail;
        	String caseNum = "0913830US";
    		String lotNum = "59919";
    		String sampleInd = "N";
    		String status = "Completed";
        	
        	AGNServiceStub stub = new AGNServiceStub();
        	InitiateInvestigationRequest initiateInvestigationRequest0 = new InitiateInvestigationRequest();
        	initiateInvestigationRequest0.setCaseNum(caseNum);
        	initiateInvestigationRequest0.setLotNum(lotNum);
        	initiateInvestigationRequest0.setSampleInd(sampleInd);
        	initiateInvestigationRequest0.setStatus(status);
        	
        	InitiateInvestigationRequestResponse res = stub.initiateInvestigationRequest(initiateInvestigationRequest0);
            
        	agnCaseDetail = res.get_return();
        	
        	System.out.println("----------------------------------------------------------- AGN Case Detail -----------------------------------------------------------");
        	System.out.println("\t AGN Case Detail : " + agnCaseDetail.toString());
        	System.out.println("---------------------------------------------------------- /AGN Case Detail -----------------------------------------------------------\n\n");
        	        	
            
        } catch (AxisFault e) {
                e.printStackTrace();
        } catch (RemoteException e) {
                e.printStackTrace();
        }

	}
}
